<?php
$menues = array();
if (isAdminLoggedIn()){
	$menues = array("menu:users" => "admin/users.php", "menu:benefits" => "admin/benefits.php", "Reportes" => "admin/reports.php", "Salir" => "actions/user/logout.php");
}else if(isUserLoggedIn()){
	$menues = array("Salir" => "actions/user/logout.php");
}


?>
<div id="header-menu" class="toprounded10">
<ul>
<?php

foreach ($menues as $name => $url){

	$selected = '';
	$hover = "menuHover";
	if(contains(curPageURL(),WWWROOT . $url)){
		$selected = " class='selected' ";
		$hover = "";
	}

	echo "<li $selected><a class='$hover' href='" . WWWROOT . $url."' >".langEcho($name)."</a></li>";

}
?>
</ul>
</div>
<div class="clearFloat"></div>